#define _CRT_SECURE_NO_WARNINGS 1

#include"SList.h"

void TestSLT1()
{
	SLNode* plist = NULL;
	SLTPushFront(&plist, 1);
	SLTPushFront(&plist, 2);
	SLTPushFront(&plist, 3);
	SLTPrint(plist);
	
	SLTPushBack(&plist,4);
	SLTPrint(plist);
	
	SLTPushFront(&plist, 5);
	SLTPrint(plist);
}

void TestSLT2()
{
	SLNode* plist = NULL;
	SLTPushFront(&plist, 1);
	SLTPushFront(&plist, 2);
	SLTPushFront(&plist, 3);
	SLTPrint(plist);

	SLTPopBack(&plist);
	SLTPrint(plist);

	SLTPopFront(&plist);
	SLTPrint(plist);
}

void TestSLT3()
{
	SLNode* plist = NULL;
	SLTPushFront(&plist, 1);
	SLTPushFront(&plist, 2);
	SLTPushFront(&plist, 3);
	SLTPrint(plist);

	SLTPrint(SLTInsert(&plist, SLTFind(plist, 2), 6));
}


int main()
{
	TestSLT3();
	return 0;
}